package com.project.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.project.bean.ExpendRecord;
import com.project.mapper.IExpendRecordMapper;
import com.project.service.IExpendService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class ExpendServiceImpl implements IExpendService {
      @Autowired
      private IExpendRecordMapper mapper;
      @Override
      public List<ExpendRecord> findAll(Long userNum) {
            QueryWrapper<ExpendRecord> qw=new QueryWrapper<>();
            qw.eq("userNum",userNum);
            return mapper.selectList(qw);
      }
}
